package com.netty.server.api;



import com.netty.rpc.lib.IGreeting;
import com.netty.rpc.lib.bean.Person;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

@Service
@Primary
public class Greeting implements IGreeting {
    @Override
    public String sayHello(String name) {
        return "hi " + name;
    }

    @Override
    public Person getPerson() {
        Person person=new Person();
        person.setAge(10);
        person.setName("ALI");
        return person;
    }
}
